<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <title>我要好发网 </title>
  <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  <meta name="Generator" content="EditPlus">
  <meta name="Author" content="">
  <meta name="Keywords" content="">
  <meta name="Description" content="">
  <link href="/www/css/a.css" rel="stylesheet" type="text/css"/>
    <link href="/www/css/reset.css" rel="stylesheet" type="text/css"/>

  <script type="text/javascript" src="/www/js/jquery.js"></script>
  <script type="text/javascript" src="/www/js/w.js"></script>
 </head>

 <body>
	<div id="header" class="clearfix">
		<div class="lw">
			<div class="top clearfix">
				<a class="logo left" href="/">我要好发网</a>
				<a href="javascript:" onclick="addToFavorite()" title="加入收藏夹" class="favorite right">收藏我要好发网</a>
			</div>
			<div class="sign">
				<?if($this->auth->loged):?>
					<?=$this->auth->uname?>，欢迎您来到我要好发网！[<a href="/sign/out" class="asign">退出</a>]
				<?else:?>
					您好，欢迎来到我要好发网！[<a href="/sign" class="asign">请登录</a>]，新用户？[<a href="/sign" class="asign" target="_blank">免费注册</a>]
				<?endif?>
			</div>
			
		</div>
	</div>
	<div id="wrap" class="lw1 clearfix ab">
		<?if($point_type == 1):?>
		<ul class="menu1 clearfix">
			<li class="<?if($point_type == 1)echo 'on';else echo 'off';?>"><a href="/zixun/action/<?=$p->id?>/1">商品咨询</a></li>
			<li class="<?if($point_type == 2)echo 'on';else echo 'off';?>" id="li2_2"><a href="/zixun/action/<?=$p->id?>/2" onclick="change(2,2)">支付方式</a></li>
			<li class="<?if($point_type == 3)echo 'on';else echo 'off';?>" id="li2_3"><a href="/zixun/action/<?=$p->id?>/3" onclick="change(3,2)">配送方式</a></li>
			<li class="<?if($point_type == 4)echo 'on';else echo 'off';?>" id="li2_4"><a href="/zixun/action/<?=$p->id?>/4" onclick="change(4,2)">售后服务</a></li>
			<li class="<?if($point_type == 5)echo 'on';else echo 'off';?>" id="li2_5"><a href="/zixun/action/<?=$p->id?>/5" onclick="change(52011/7/19,2)">常见问题</a></li>
			<li class="add"><a href="#zixun-form">发表咨询</a></li>
		</ul>
			<?if($c):?>
			<?foreach($c as $com):?>
				<div class="qa-list clearfix" id="qa-list<?=$com->id?>">
					<p class="time">网友：<?=$com->uname?> <?=$com->time?></p>
					<div class="q-left left"></div>
					<p class="q-right left">咨询内容： <?=$com->content?></p>
					<div class="clearfix"></div>
					<?if(isset($com->reply)):?>
						<div id="reply-text-<?=$com->id?>">
							<div class="a-left left"></div>
							<p class="a-right left">客服回复：<?=$com->reply->content?></p>
						</div>
					<?endif?>
				</div>
			<?endforeach;endif;?>
			<p>共<?=$num?>条咨询</p>


			<?php echo $page;?>


		<?if($success):?><div class="success"><?=$success?></div><?endif?>
		<div class="form-error"><?=$error?></div>
		<form action="/zixun/action/<?=$p->id?>/<?=$point_type?>" method="post" id="zixun-form"class="form2">
			<div class="form-item">
				<div class="top">
					<label for="content">发表咨询</label>
				</div>
				<!--
				<div class="item">
					<label>咨询类型:</label>
					<input type="radio" name="point_type" value="1" id="point_type_1" <?if($point_type == 1)echo 'checked';?>/><label for="point_type_1">商品咨询</label>
					<input type="radio" name="point_type" value="2" id="point_type_2" <?if($point_type == 2)echo 'checked';?>/><label for="point_type_2">支付方式</label>
					<input type="radio" name="point_type" value="3" id="point_type_3" <?if($point_type == 3)echo 'checked';?>/><label for="point_type_3">配送方式</label>
					<input type="radio" name="point_type" value="4" id="point_type_4" <?if($point_type == 4)echo 'checked';?>/><label for="point_type_4">售后服务</label>
					<input type="radio" name="point_type" value="5" id="point_type_5" <?if($point_type == 5)echo 'checked';?>/><label for="point_type_5">常见问题</label>
				</div>
				-->
				<div class="item">
					<label for="content">咨询内容</label>
				</div>
				<div class="form-textarea-item item tr-off clearfix">
					<textarea name="content" id="content" class="textarea"></textarea>
					<span class="form-border-right"></span>
				</div>

				<div class="footer clearfix">
					<input type="submit" class="button" value="我要咨询" />
					<input type="reset" class="cancel" value="取消" />
				</div>
			</div>
		</form>
		<?else:?>
			<ul class="menu1 clearfix" id="menu2">
				<li class="<?if($point_type == 1)echo 'on';else echo 'off';?>"><a href="/zixun/action/<?=$p->id?>/1">商品咨询</a></li>
				<li class="<?if($point_type == 2)echo 'on';else echo 'off';?>" id="li2_2"><a href="javascript:" onclick="change(2,2)">支付方式</a></li>
				<li class="<?if($point_type == 3)echo 'on';else echo 'off';?>" id="li2_3"><a href="javascript:" onclick="change(3,2)">配送方式</a></li>
				<li class="<?if($point_type == 4)echo 'on';else echo 'off';?>" id="li2_4"><a href="javascript:" onclick="change(4,2)">售后服务</a></li>
				<li class="<?if($point_type == 5)echo 'on';else echo 'off';?>" id="li2_5"><a href="javascript:" onclick="change(5,2)">常见问题</a></li>
				<li class="add"><a href="#zixun-form">发表咨询</a></li>
			</ul>
			<div id="con2_2" class="<?if($point_type != 2)echo 'hidden';?>">
				<?if(isset($zf)) echo htmlspecialchars_decode(stripslashes($zf->content));?>
			</div>
			<div id="con2_3" class="<?if($point_type != 3)echo 'hidden';?>">
				<?if(isset($ps)) echo htmlspecialchars_decode(stripslashes($ps->content));?>
			</div>
			<div id="con2_4" class="<?if($point_type != 4)echo 'hidden';?>">
				<?if(isset($ss)) echo htmlspecialchars_decode(stripslashes($ss->content));?>
			</div>
			<div id="con2_5" class="<?if($point_type != 5)echo 'hidden';?>">
				<?if(isset($cj)) echo htmlspecialchars_decode(stripslashes($cj->content));?>
			</div>

		<?endif?>
		
	</div>
<?$this->load->view('footer.tpl');?>